/**
 * Copyright (C), 2020-2020, 人生无限公司
 * FileName: Student
 * Description:定义学生类
 * 属性为姓名，年龄，使用学生对象保存录入数据。
 *
 * @create: 2020/7/17 14:15
 * @author Reanon
 * @version JDK 1.8.0_251
 */
package cn.reanon.day06.homework.test2;

public class Student {
    private int age;
    private String name;

    public Student(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void show() {
        System.out.println( "学生姓名=" + name + ", 年龄=" + age);
    }

}
